import request from '@/utils/request'

// 查询派单间隔设置列表
export function listInterval(query) {
  return request({
    url: '/vehicle/interval/list',
    method: 'get',
    params: query
  })
}

// 查询派单间隔设置详细
export function getInterval(intervalId) {
  return request({
    url: '/vehicle/interval/' + intervalId,
    method: 'get'
  })
}

// 新增派单间隔设置
export function addInterval(data) {
  return request({
    url: '/vehicle/interval',
    method: 'post',
    data: data
  })
}

// 修改派单间隔设置
export function updateInterval(data) {
  return request({
    url: '/vehicle/interval',
    method: 'put',
    data: data
  })
}

// 删除派单间隔设置
export function delInterval(intervalId) {
  return request({
    url: '/vehicle/interval/' + intervalId,
    method: 'delete'
  })
}
